<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>示例</title>
    <script src="./js/QueryString1.js"></script>
</head>
<body>
<script>
    var newElement = document.createElement ("div");//创建div对象
    var name = QueryString.getParameter("name");
    var email = QueryString.getParameter("email");
    var str = "<u>" + name + "</u>,欢迎光临!<br>您的E-mail是:<u>" + email + "</u>";//利用实例["字段名称"]获取参数内容
    newElement.innerHTML = str;
    document.body.appendChild (newElement);//向文档添加div对象
</script>
</body>
</html>